@tool
@icon("../icons/all_of_guard.svg")
class_name AllOfGuard
extends Guard

# 条件全部满足才允许触发
@export var guards:Array[Guard] = []

func is_satisfied(transition:Transition,state:State) -> bool:
	for guard in guards:
		if guard.is_satisfied(transition,state) == false:
			return false
	return true
